<?php

if (!defined('THINK_PATH')){
	exit('Access Denied');
}

class CommonAction extends Action{
	function _initialize(){
		global $_G;
		$_G = array();

		//时间
		$mtime = explode(' ', microtime());
		$_G['timestamp'] = $mtime[1];
		$_G['starttime'] = $_SGLOBAL['timestamp'] + $mtime[0];
		
		//初始化
		$_G['uid'] = 0;
		$_G['username'] = '';
		$_G['inajax'] = empty($_GET['inajax'])?0:intval($_GET['inajax']);
		
		checkauth();
		
		if(!$_G['uid']){
			$this->error('您没有权限进行此项操作');
		}
	}
}
?>
